package com.nodecollege.cloud.client.feign;

import com.nodecollege.cloud.client.fallback.FriendClientFallback;
import com.nodecollege.cloud.common.model.NCResult;
import com.nodecollege.cloud.common.model.QueryVO;
import com.nodecollege.cloud.common.model.po.UpmsUserFriend;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *
 * @author LC
 * @date 23:05 2020/3/4
 **/
@Primary
@FeignClient(value = "UPMS", path = "/myFriend", fallback = FriendClientFallback.class)
public interface FriendClient {

    @PostMapping("/getFriendList")
    NCResult<UpmsUserFriend> getFriendList(@RequestBody QueryVO<UpmsUserFriend> queryVO);
}
